import axios from 'axios'

const baseUrl = 'http://192.168.88.177:9875'


// /api/v1/dataAnalysis/getTableMetaInfo
// tableName  PROJECT_ACCEPTANCE   PROJECT_ACHIEVEMENT  PROJECT_ACHIEVEMENT_GENERAL_PLAN
export const getTableMetaInfo = (tableName) => {
  console.log('tableName', tableName)
  const url = baseUrl + '/api/v1/dataAnalysis/getTableMetaInfo?tableName=' + tableName
  return axios.get(url)
}

// post /api/v1/dataAnalysis/updateTableMetaInfo
// {
//   "table_name": "工程成果_验收",     "工程成果_单体"   "工程成果_总平"
//   "table_meta_info": "sy"
// }
export const updateTableMetaInfo = (params) => {
  const url = baseUrl + '/api/v1/dataAnalysis/updateTableMetaInfo'
  return axios.post(url, params)
}
